home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3iff.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_IFF_H = 1;
- include("oops/r3file.js")
-
-
- var R3CLID_IFF = 127;
-
-
-
-
- // Description: Begin reading of a chunk
- // Returns: Boolean, TRUE if chunk was found
-
- R3IFFM_BEGINREAD = 127000;
-
- function mR3IFFM_BEGINREAD() {
- return DoA(this.r3obj, 127000, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Terminates current chunk. Must be called after all data inside a chunk is read
- // (including all sub chunks).
- // Returns: Boolean, TRUE if succeeded. FALSE may indicate corrupted file.
-
- R3IFFM_ENDREAD = 127001;
-
- function mR3IFFM_ENDREAD() {
- return DoA(this.r3obj, 127001, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Begin writing of new chunk.
- // Returns: Boolean, TRUE if succeeded
-
- R3IFFM_BEGINWRITE = 127002;
-
- function mR3IFFM_BEGINWRITE() {
- return DoA(this.r3obj, 127002, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Terminates chunk.
- // Returns: Boolean, TRUE if succeeded
-
- R3IFFM_ENDWRITE = 127003;
-
- function mR3IFFM_ENDWRITE() {
- return DoA(this.r3obj, 127003, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Skip the chunk and proceed to the next chunk.
-
- R3IFFM_SKIP = 127004;
-
- function mR3IFFM_SKIP() {
- DoA(this.r3obj, 127004, 0, R3TID_INTEGER, 0);
- }
-
-
-
-
- var R3IFFA_ChunkID = 127500; // Integer
- var R3IFFA_SubID = 127501; // Integer
- R3IFFA_Native = 127502;
- function SetR3IFFA_Native(value) {
- R3Set(this.r3obj, R3IFFA_Native, value, R3TID_INTEGER, 0);
- }
-
- function GetR3IFFA_Native() {
- return R3Get(this.r3obj, R3IFFA_Native, R3TID_INTEGER, 0);
- }
-
- var R3IFFERR_NOTIFF = 127500;
- var R3IFFERR_NOTOURTYPE = 127501;
- var R3IFFERR_CORRUPTED = 127502;
-
-
- function r3Iff () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_IFF, arguments);
- }
- // Methods
- this.BEGINREAD=mR3IFFM_BEGINREAD;
- this.ENDREAD=mR3IFFM_ENDREAD;
- this.BEGINWRITE=mR3IFFM_BEGINWRITE;
- this.ENDWRITE=mR3IFFM_ENDWRITE;
- this.SKIP=mR3IFFM_SKIP;
-
- // Attributes
- this.GetNative=GetR3IFFA_Native;
- this.SetNative=SetR3IFFA_Native;
- }
-
- r3Iff.prototype=new r3File;
- // r3iff.h_H